"""swiftH URL Configurationc'd

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from operator import contains
from tkinter.font import names

from django.contrib import admin
from django.urls import path
from app01 import views

urlpatterns = [
    path('', views.login),
    path('login/', views.login),#当前路径后还有路径需要加/
    path('index/', views.index),
    path('containers/', views.containers, name='containers'),
    path('objects/<str:data2>/', views.objects,name='objects'),
    path('addContainer/<str:data>', views.addContainer,name='addContainer'), # 添加容器
    path('hmz/main5/<str:container>',views.delContainer,name='hmz'), # 删除容器
    path('main4/<str:container>/<str:delobject>', views.delObject,name='main4'),# 删除对象
    path('upload/<str:upload_object>', views.uploadindex,name='uploadindex'), #上传
    path('download/<str:container>/<str:object>', views.downloadindex,name='download'), #下载
    path('main3/<str:container>/<str:object>/<str:objectname>/<str:content_type>',views.showObjectContent,name='main3'),
    path('copy/<str:source_container>/<str:source_object>/<str:target_container>/', views.copyObject, name='copy_object'), # 复制对象
    path('testBody2/', views.testBody2_view, name='testBody2'),
    path('static/json/2/table/demo1.json', views.json_data_view, name='your_json_view'),
    path('your_json_view/', views.json_data_view, name='your_json_view'),


]
